package com.atchangsha.system.controller;

import com.atchangsha.system.common.utils.Result;
import com.atchangsha.system.service.IncomeService;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("system/income")
@CrossOrigin
public class IncomeController {
    @Resource
    private IncomeService incomeService;

    /**
     * 查看收入
     * @return
     */
    @GetMapping("selectIncome")
    public Result selectIncome(){
        return incomeService.selectMoney();
    }
}
